/* locallibrary/static/css/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    animation: fadeIn 1s ease-in-out; /* 添加淡入动画 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-family: 'Pacifico', cursive;
    font-size: 3em;
    animation: slideDown 1s ease-in-out; /* 添加下滑动画 */
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.footer {
    background-color: #2c3e50;
    color: white;
    padding: 10px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    animation: fadeIn 1s ease-in-out; /* 添加淡入动画 */
}

.nav {
    background-color: #34495e;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}

.nav a:hover {
    background-color: #2c3e50;
}

.content {
    padding: 20px;
}

.table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

.table, th, td {
    border: 1px solid #ddd;
    padding: 12px;
}

.table th {
    background-color: #3498db;
    color: white;
}

.table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table tr:hover {
    background-color: #e0f7fa;
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}

ul {
    padding-left: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; /* 添加过渡效果 */
}

.card:hover {
    transform: scale(1.02); /* 鼠标悬停时卡片放大 */
}

.card-header {
    background-color: #3498db;
    color: white;
    padding: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-body {
    padding: 20px;
}

/* 访问次数样式 */
.num-visits {
    font-size: 1.5em;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* DeepSeek 输入框和结果显示区域样式 */
#deepseek-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#deepseek-result {
    min-height: 100px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
}